package org.example.ItemCF.src.recommend;

/**
 * 用于表示两个物品及其共同出现次数的类。
 */
class Cooccurrence {
    private int itemID1;
    private int itemID2;
    private int num;

    public Cooccurrence(int itemID1, int itemID2, int num) {
        this.itemID1 = itemID1;
        this.itemID2 = itemID2;
        this.num = num;
    }

    public int getItemID1() {
        return itemID1;
    }

    public int getItemID2() {
        return itemID2;
    }

    public int getNum() {
        return num;
    }

    @Override
    public String toString() {
        return "[" + itemID1 + "," + itemID2 + "," + num + "]";
    }

}
   
